package com.example.course.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 学生更新数据传输对象，用于更新学生信息
 *
 * @author Jasmine-drs
 * @date 2025/4/22 16:30
 */
@Data
@ApiModel(value = "StudentUpdateDTO", description = "学生更新数据传输对象")
public class StudentUpdateDTO {

	@NotBlank(message = "姓名不能为空")
	@Size(max = 8, message = "姓名长度不能超过8个字符")
	@ApiModelProperty(value = "姓名", required = true)
	private String name;

	@NotBlank(message = "学号不能为空")
	@Size(max = 11, message = "学号长度不能超过11个字符")
	@ApiModelProperty(value = "学号", required = true)
	private String studentNum;

	@NotBlank(message = "密码不能为空")
	@Size(max = 64, message = "密码长度不能超过64个字符")
	@ApiModelProperty(value = "密码", required = true)
	private String password;
} 